Skip to content

Swd#20

Open
cchr-ledger wants to merge 21 commits into
masterfrom
swd
Open

Swd#20
cchr-ledger wants to merge 21 commits into
masterfrom
swd

Conversation

@cchr-ledger
Copy link
Copy Markdown

This adds a SWD controller to the FPGA architecture, and exposes it through the python API.

@cchr-ledger cchr-ledger requested a review from kingofpayne July 30, 2024 09:22
Comment thread api/scaffold/__init__.py Outdated
Comment thread api/scaffold/__init__.py Outdated
Comment thread api/scaffold/__init__.py Outdated
Comment thread api/scaffold/__init__.py Outdated
Comment thread api/tests/test_swd.py Outdated
Comment thread api/scaffold/__init__.py Outdated
Comment thread fpga-arch/bsv/Prescaler.bsv Outdated
Comment thread fpga-arch/bsv/Counter.v Outdated
Comment thread fpga-arch/bsv/SWD.bsv Outdated
Comment thread fpga-arch/bsv/SWD.bsv Outdated
Comment thread fpga-arch/bsv/SWD.bsv Outdated
Comment thread fpga-arch/bsv/SWDInner.bsv
Comment thread fpga-arch/bsv/SWD.bsv Outdated
Comment thread fpga-arch/bsv/SWDInner.bsv Outdated
Comment thread fpga-arch/bsv/SWDInner.bsv Outdated
Comment thread fpga-arch/bsv/SWD.bsv Outdated

// ONLY do something if there is a valid command registered, and if
// the user is not currently writing to some register.
rule do_idle ((state == IDLE) && (bus_write == 0) && isValid(cmd));
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think bus_write == 0 should not be in the condition here. As long as cmd is valid, the SWD peripheral can start working.
In particular, the host may be talking with another Scaffold peripheral at the same time, and this shall not prevent the SWD from working.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants